package com.lyf.language;

import java.math.BigDecimal;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/23
 * @VERSION 1.0
 * @DESC
 */
public class BigDecimalDemo {
    public static void main(String[] args) {
        BigDecimal bigDecimal = new BigDecimal("1.23");
        BigDecimal bigDecimal1 = bigDecimal.setScale(1,BigDecimal.ROUND_UP);
        System.out.println(bigDecimal1);
    }
}
